I am using zabbix_server (Zabbix) 3.0.8 I have the following zabbix item:
item = log[/path/to/file.log,"Processing file"]
I also configured this item to be able to "read" log timestamp [with "log time format"="yyyypMMpddphh:mm:ssppp
p"]
Zabbix stores this data in a 3 column table:
How can I create a trigger that uses the Local Time data?
For example I want zabbix to alert me if "Local time" of the last item value is older than 1 hour relative to current time [NOW - LOCAL TIME of last item value >= 3600s]
item = log[/path/to/file.log,"Processing file"]
I also configured this item to be able to "read" log timestamp [with "log time format"="yyyypMMpddphh:mm:ssppp
p"]Zabbix stores this data in a 3 column table:
HTML Code:
Timestamp Local time Log string 12/14/2017 01:02:36 PM 2017-12-14T13:02:33+01:00 Processing file foo.xml 12/14/2017 01:02:36 PM 2017-12-14T13:02:29+01:00 Processing file bar.xml
For example I want zabbix to alert me if "Local time" of the last item value is older than 1 hour relative to current time [NOW - LOCAL TIME of last item value >= 3600s]